package card

import "myygo/internal/game/effect"

// 卡基类
type Card struct {
	Code     int
	Name     string
	Type     int    //类型
	Tag      string //字段
	Describe string //描述文本
}

// 怪兽基类
type Monster struct {
	Card
	Ack       int
	Def       int
	Race      string //种族
	Star      int
	Attribute int //属性
}

// 通常怪兽
type CommonMonster struct {
	Monster
}

// 效果怪兽
type EffectMonster struct {
	Monster

	Effects []effect.Effect
}

// 额外怪兽
type ExtraMonster struct {
	EffectMonster

	Materials []Card
}

type BackCardType int

const (
	NormalMagic BackCardType = iota
	FastMagic
	FieldMagic
	PerpetualMagic
	EquipMafic
	NormalTrap
	PerpetualTrap
	CounterTrap
)

type BackCards struct {
	Card

	Effects  []effect.Effect
	CardType BackCardType
	SetRound int //盖放的回合
}
